package com.ycfmedical.bed.bean;

import android.os.Parcel;
import android.os.Parcelable;

import cn.droidlover.xdroidmvp.event.IBus;

/**
 * Created by Administrator on 2017-04-13.
 */

public class NurseControl implements Parcelable,IBus.IEvent{

    // 当前床体控制状态
    private int lockState;

    @Override
    public int getTag() {
        return 10;
    }

    public NurseControl(int lockState)
    {
        this.lockState = lockState;
    }

    public int getLockState() {return lockState;}

    public void setLockState(int lockState) {this.lockState = lockState;}

    public static Creator<NurseControl> getCREATOR() {return CREATOR;}
    @Override
    public void writeToParcel(Parcel dest, int flags)
    {
        dest.writeInt(this.lockState);
    }

    protected NurseControl(Parcel in)
    {
        this.lockState = in.readInt();
    }

    @Override
    public int describeContents()
    {
        return 0;
    }
    public static final Creator<NurseControl> CREATOR = new Creator<NurseControl>()
    {
        @Override
        public NurseControl createFromParcel(Parcel in) {
            return null;
        }

        @Override
        public NurseControl[] newArray(int size) {
            return new NurseControl[0];
        }
    };


}
